package com.wen.controller;

import org.springframework.stereotype.Controller;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 全局异常
 */
@Controller
@RequestMapping("e")
public class ExceptionController {

    /**
     * 手动引发异常
     * @return
     */
    @RequestMapping("500")
    public void jPage() {
        Assert.isTrue(false,"参数错误");
        //throw new NullPointerException("565");
    }
}
